import { tmpdir } from "os";
import { join } from "path";
import ConfigDevelopment from "./config.development";
import ConfigProduction from "./config.production";
export const NODE_ENV = process.env.NODE_ENV === "development";
const ConfigOptions = NODE_ENV ? ConfigDevelopment : ConfigProduction; // 判断开发环境还是生产环境
// console.log("process.env.NODE_ENV", ConfigOptions);
// 公用配置
export default {
  keys: "1658067958860_4704",
  koa: {
    host: "http://127.0.0.1",
    port: 7002,
  },
  jwt: {
    secret: "nest-chat", // fs.readFileSync('xxxxx.key')
    expiresIn: "72h", // https://github.com/vercel/ms
  },
  ...ConfigOptions,
};
